package com.aaa.web.dao.appstoredao;

import com.aaa.entity.appstore.ElectromobileMessage;
import com.aaa.web.commons.SecondCarEntrepotQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName ElectromobilePartsDao
 * @Description 配件商城页面
 * @Author 许一鑫
 * @Date
 **/
@Mapper
@Component
public interface ElectromobilePartsDao {
    /**获取所有配件商品信息,分页，搜索框*/
    List<ElectromobileMessage> getElectromobilePartsMessage(SecondCarEntrepotQuery query);
    /**获取所有配件商品信息条数
     * @param query*/
    Object getElectromobilePartsCount(SecondCarEntrepotQuery query);
    /**根据商品名下架已有的商品*/
    void delGoods(String goodsname);
    /**添加新商品*/
    void addNewGoods(ElectromobileMessage e);
    /** 查重，查询是否该商品名重复*/
    String findgoodsname(String goodsname);
}
